from django.conf.urls import url
from rest_framework.routers import DefaultRouter

from . import views

urlpatterns = [
    url(r'^news/$', views.title.as_view()),
    url(r'^news/news_list/$', views.news_news_list.as_view()),
    url(r'^news/(?P<id>\d+)/$', views.news_get.as_view()),
    url(r'^news/news_add/$', views.new_next.as_view()),
    url(r'^news/refresh$', views.refresh.as_view()),
]
router = DefaultRouter()
router.register('news/search', views.CatSearchViewSet, base_name='Blo_search')

urlpatterns += router.urls